Qualcomm Dragonwing IQ-9075 Disk Encryption
Qualcomm Dragonwing IQ-9075 Disk Encryption
The Qualcomm Dragonwing IQ-9075 supports storage encryption using Linux fscrypt and Qualcomm hardware cryptographic engines. The Inline Crypto Engine (ICE) accelerates AES encryption for supported storage, while fscrypt provides filesystem-level encryption for files and directories on supported filesystems such as ext4 and F2FS.
Qualcomm Linux Storage Encryption
Qualcomm Linux exposes hardware cryptographic acceleration through the Crypto Engine and Inline Crypto Engine (ICE). ICE supports AES-128 and AES-256 in ECB and XTS modes. The qcrypto Linux kernel driver makes these capabilities available to storage encryption software, including fscrypt. Whether a workload uses hardware acceleration depends on the platform kernel configuration and storage path.
Qualcomm Linux provides storage encryption through the combination of the Inline Crypto Engine (ICE) and hardware-wrapped keys, enabling transparent encryption of files and directories. The implementation supports content encryption keys ranging from 32 to 64 bytes, uses separate keys for file contents and filenames, and can generate 32-byte key identifiers. This functionality is integrated with the Linux fscrypt API through the new Qualcomm universal flash storage (UFS) driver.
Filesystem Encryption with fscrypt
This tool is used to invoke the storage encryption functionality. The fscrypt is a library which serves as a hook for filesystems to support transparent encryption of files and directories. The fscrypt operates at the filesystem level rather than at the block device level. This allows different directory trees to be protected with different encryption keys and unencrypted files to exist in the same filesystem. This allows for multi-user systems to cryptographically isolate data from other users. fscrypt does not encrypt filesystem metadata, other than filenames. It is also integrated directly into supported filesystems, such as ext4 and F2FS, filesystems supported for the Dragonwing IQ-9075.
fscrypt does not encrypt existing files or directories. Instead, encryption is enabled by applying to an empty directory. Once the corresponding key is provided via userspace, all files, subdirectories, and symbolic links subsequently created within that directory tree are automatically and transparently encrypted. fscrypt is designed to protect data by encrypting file contents and filenames while preserving normal filesystem operation. It supports modern encryption schemes, per-file key derivation, multiple encryption policies, and hardware acceleration through Linux's inline encryption framework. It can leverage the Inline Crypto Engine (ICE) through the UFS storage to perform inline encryption of file contents. By offloading cryptographic operations to dedicated hardware, the platform can reach higher storage encryption performance while reducing CPU utilization.
To simplify the management of encrypted directories and encryption keys, Linux provides userspace tools such as fscryptctl. These tools allow users to configure encryption policies, provision encryption keys, unlock encrypted directory trees, and query encryption status without directly interacting with kernel APIs. On Qualcomm Linux, fscrypt integrates with the UFS driver and the Inline Crypto Engine (ICE), enabling hardware-accelerated storage encryption and support for hardware-wrapped keys that provide additional protection against key exposure.
You can read more on the fscrypt in the Linux Kernel's Official Documentation.
Inline Storage Encryption with ICE
Storage encryption in Qualcomm Linux is implemented using Linux's inline encryption framework (blk-crypto), which allows encryption and decryption operations to be performed directly in the storage path. Instead of relying exclusively on software cryptography, inline encryption hardware operates between system memory and the storage device, processing data transparently as it is written to or read from storage.
On the Dragonwing IQ-9075, the Inline Crypto Engine (ICE) provides hardware acceleration for storage encryption. Through integration with the UFS storage and the Linux block layer, encryption parameters such as keys, algorithms, and data unit sizes can be applied for each read and write request. When hardware acceleration is unavailable, Linux can optionally fall back to software-based encryption through the kernel cryptographic framework while maintaining the same on-disk data format.
The inline encryption framework also supports hardware-wrapped keys, which improves key protection by ensuring that encryption keys are never exposed in plain text to software. Instead, keys remain encrypted and can only be unwrapped and used by dedicated hardware. This helps mitigate attacks that attempt to extract encryption keys from system memory, such as cold boot attacks or memory vulnerabilities.
On Qualcomm Linux, fscrypt integrates with UFS storage and the Inline Crypto Engine (ICE) to provide transparent filesystem encryption with hardware acceleration. Combined with hardware-wrapped keys, this implementation improves storage security while maintaining system performance.
You can read more on Inline Encryption in the Linux Kernel's Official Documentation.
Verify Storage Encryption Status on Qualcomm Linux
The qcrypto driver, fscryptctl, and the Inline Crypto Engine (ICE) are already included in the kernel sources built in the Qualcomm Linux 1.8 image. You can verify the qcrypto driver status by running the following command:
dmesg | grep -i qcrypto
Expected output:
[ 3.741056][ T466] qcrypto 1dfa000.crypto: Adding to iommu group 0
Verify that cryptographic algorithms are registered through the Linux Crypto API:
cat /proc/crypto | grep -i -A5 qcrypto
Expected output:
module : qcrypto priority : 275 refcnt : 1 selftest : passed internal : no type : aead ...
Verify that the storage device has the Inline Crypto Engine (ICE):
ls /sys/block/sda/queue/crypto
Expected output:
hw_wrapped_keys max_dun_bits modes num_keyslots
Verify that the filesystem is mounted with inline encryption support:
mount | grep inlinecrypt
Expected output:
/dev/sda3 on /sysroot type ext4 (rw,relatime,inlinecrypt) /dev/sda3 on / type ext4 (rw,relatime,inlinecrypt) /dev/sda3 on /usr type ext4 (ro,relatime,inlinecrypt) /dev/sda3 on /var type ext4 (rw,relatime,inlinecrypt)
Block-Device Encryption
Qualcomm Linux does not provide block-level disk encryption using luks as a out of the box feature; a set of customs applications in trusted world is required for proper implementation.
The main challenge is key management. Dragonwing IQ-9075 do not include a set of fuses for handling the encryption key, so a custom rolling process must be created to provide the key to be used, or the key must be created privately on the device during the first boot.
A reference block-level encryption system for Qualcomm Linux would look like this:

The work would be distributed across three applications:
- A client on the user side to request the encryption passphrase for each partition from the trusted world.
- A server in the trusted zone that checks the requests made by the client and derives the passphrase for the requested partition from the device secret.
- A key manager in the trust zone that derives a unique key per device from the provided key or the privately generated key, and blocks all subsequent requests until the next reboot.
This approach can be modified to include features specific to each development board, for example, using a fuse value for device-specific key derivation or using an encryption fuse to protect the enrollment process.
If you wish to evaluate the implementation of a system based on this approach or similar ones, you can contact us.
FAQ
- What is the difference between fscrypt and block-device encryption?
fscryptencrypts files and directories at the filesystem level, allowing different directory trees to use different keys. Block-device encryption protects data at the block-device level.- What does the Inline Crypto Engine do?
- The Inline Crypto Engine (ICE) provides hardware support for AES-128 and AES-256 encryption in ECB and XTS modes to accelerate supported storage encryption operations.
- Which filesystems support fscrypt on the Dragonwing IQ-9075?
- Supported filesystems include ext4 and F2FS.
- Does fscrypt encrypt filesystem metadata?
fscryptdoes not encrypt filesystem metadata, except for filenames.